import request from '@/utils/request'
// 导出登录请求方法
export const login = function (data) {
  return request.post('/user/login', data)
}
// 导出注册请求
export const register = function (data) {
  return request.post('/user/registered', data)
}
// 城市列表1
export const listsofcities = function () {
  return request.get('/area/city', {
    params: {
      level: 1
    }
  })
}

// 城市列表2
export const listsofcitiestuo = function () {
  return request.get('/area/city', {
    params: {
      level: 2
    }
  })
}
// 找房
export const houses = function (data) {
  return request.get('/houses', data)
}
// 查询房屋具体信息
export const housesID = function (id) {
  return request.get(`/house/${id}`)
}
